Skip to content

fix(gallery): persist inference defaults under parameters - #11256

Open
localai-org-maint-bot wants to merge 1 commit into
masterfrom
bot/issue-11230-gallery-defaults
Open

fix(gallery): persist inference defaults under parameters#11256
localai-org-maint-bot wants to merge 1 commit into
masterfrom
bot/issue-11230-gallery-defaults

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Collaborator

What

Persist model-family inference defaults in the nested parameters map that ModelConfig reads, and re-marshal the merged config before either the artifact or files: install path continues. Existing authored parameter values remain authoritative.

Adds regression coverage for both artifact-binding and explicit-file installs.

Closes #11230

Testing

  • go test ./core/gallery -run TestGallery -ginkgo.focus="gallery inference defaults|installs a previously broken index entry" -count=1
  • go test ./core/gallery -run TestGallery -ginkgo.skip="should return error when backend is not found|should install backend from gallery|parses github with a branch" -count=1
  • go vet ./core/gallery
  • git diff --check HEAD^ HEAD

The three skipped specs depend on GitHub/Gist HTTP fixtures that return HTTP 403 in this cron environment. A full-suite attempt reproduced those unrelated fixture failures.

Checklist

  • Regression coverage added
  • No user-facing API, flag, or configuration surface changed; no documentation update required
  • AI assistance attributed in the commit trailer

Gallery installs merged family defaults at the YAML root and only re-marshaled them on the artifact path. Persist the defaults in the loader-visible parameters map for every install path while preserving authored overrides.

Assisted-by: Codex:gpt-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gallery install writes sampling parameters where the config loader cannot read them

1 participant